﻿using BW.MesProject.Public.ErrorCode;
using BW.MesProject.WareHouse.Domain;
using BW.MesProject.WareHouse.Infrastructure.Dto.Input;
using BW.MesProject.WareHouse.Infrastructure.Dto.OutPut;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Infrastructure
{
    /// <summary>
    /// 基础信息
    /// </summary>
    public interface IEMPServices
    {

        /// <summary>
        /// 查询人员信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<List<EMPModel>> GetEMP(string? EMPName, int pagesize, int pageNum, string DepId);

        /// <summary>
        /// 查询新
        /// </summary>
        /// <param name="qryInput"></param>
        /// <returns></returns>
        ApiResult<List<EMPOut>> GetEMPNew(QryInput qryInput);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="EMP"></param>
        /// <returns></returns>
        ApiResult<int> AddEMP(EMPModel EMP);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateEMP(EMPModel model);

        /// <summary>
        /// 修改启用
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateEnable(EMPModel model);

        /// <summary>
        /// 软删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        ApiResult<int> UpdateDelete(string Id);

        /// <summary>
        /// 查询编码
        /// </summary>
        /// <param name="EMPID"></param>
        /// <returns></returns>
        ApiResult<int> GetEMPID(string EMPID);
    }
}
